import{createRouter,createWebHashHistory} from "vue-router";

// 1.定义用于路由访问的组件
import HomePage from "../views/HomePage.vue"

// 2.定义路由表
const routes =[
    {
        path:"/",
        component:HomePage
    }
]

// 3.创建路由
const router = createRouter({
    history:createWebHashHistory(),
    routes
})
export default router;